﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CarSendList.aspx.cs" Inherits="Webcar.Car.CarSendList" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>
<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>
<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>长途派车记录</title>
</head> 

<script language = "javaScript" src ="../JavaScript/default.js" type="text/javascript"></script>
<body style="margin:0px 0px 0px 0px; padding:0px 1px 0px 1px; overflow-y:hidden">
    <form id="form1" runat="server">
    <div>
        <uc1:NaviBar ID="NaviBar1" runat="server" />
        <uc2:SearchPanel ID="SearchPanel1" runat="server" OnSearchClick="Seach_Click" />
    
        <div class="div_blue">
        <asp:Label runat="server" ID="Label1" Text="" />
        <asp:CheckBox ID="cbUnsign" runat="server" Text = "只查看未审核记录" AutoPostBack="true" OnCheckedChanged="cbUnsign_CheckedChanged"  />
        </div>
        <asp:GridView ID="GridView1" runat="server" DataKeyNames="xh" AutoGenerateColumns="False" Width="100%" SkinID="gridviewSkin" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                
                <asp:TemplateField>
                <ItemTemplate>
                    <asp:Image ID="Image1" ImageUrl="~/App_Themes/Default/image2/newpost2.gif" runat="server" />
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="所属单位">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkDeptName" ToolTip="点击查看该单位的所有派车记录" runat="server" NavigateUrl="" Text='<%# Eval("dept_name") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="牌照号">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkRecordNo"  runat="server" NavigateUrl="" Text='<%# Eval("record_no") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="driver_name" HeaderText="驾驶员" />
                
                <asp:TemplateField HeaderText="往返地点">
                   
                    <ItemTemplate>
                    <div class ="ellipsis" style="width:100px">
                        <asp:Label ID="lblPlace" runat="server" Text='<%# Bind("place") %>'></asp:Label>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="s_date" HeaderText="开始时间"/>
                <asp:BoundField DataField="e_date" HeaderText="结束时间" />
                <asp:BoundField DataField="send_man" HeaderText="派车人" />
                <asp:BoundField DataField="startmile" HeaderText="开始里程" />
                <asp:BoundField DataField="endmile" HeaderText="结束里程" />
                <asp:BoundField DataField="summile" HeaderText="累计里程" />
                
                <asp:TemplateField HeaderText="事由">
                    
                    <ItemTemplate>
                    <div class ="ellipsis" style="width:100px">
                        <asp:Label ID="lblReason" runat="server" Text='<%# Bind("reason") %>'></asp:Label>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="linkEdit" ToolTip="" runat="server" NavigateUrl="" Text='编辑'></asp:HyperLink>
                        <asp:LinkButton ID="DeleteBtn" runat="server" Text = "删除" CommandName = "Delete"
                         CommandArgument='<%#Bind("xh")%>'></asp:LinkButton>
                         <asp:HyperLink ID="linkView" ToolTip="" Target="_blank"  runat="server" NavigateUrl="" Text='打印'></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                
                
            </Columns>
        </asp:GridView>
        <div class="pager">
        
            
            <div style="text-align:left;float:left;padding-top:1px">
                [<asp:LinkButton ID="linkPrint" runat="server" Text="查看打印页" OnClick="linkPrint_Click"></asp:LinkButton>]
                <asp:HyperLink ID="HyperLink1" NavigateUrl="" runat="server">填写派车申请单</asp:HyperLink>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:CheckBox ID="cbNew" runat="server" Text = "查看新派车记录" Visible ="false"  />
            </div>
            
                 
            
             <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
            
        </div>
    </div>    
    </form>
</body>
</html>
